package com.fire.eyes.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;

/**
 * <p>
 * 活动表
 * </p>
 *
 * @author raoyuxing123
 * @since 2018-05-10
 */
@TableName("t_mit_activity")
public class TMitActivity extends Model<TMitActivity> {

    private static final long serialVersionUID = 1L;

    /**
     * 活动号
     */
    @TableId(value = "activityid", type = IdType.AUTO)
    private Integer activityid;
    /**
     * 活动名称
     */
    private String name;
    /**
     * 活动入口地址
     */
    private String entryurl;
    /**
     * 出口url
     */
    private String exiturl;
    /**
     * 活动口号
     */
    private String promotion;
    /**
     * 创建时间
     */
    private Date createtime;
    /**
     * 开始时间
     */
    private Date starttime;
    /**
     * 结束时间
     */
    private Date expiretime;
    /**
     * 活动状态(0:初始化,1:进行中,2:编辑中,3:结束)
     */
    private Integer status;
    /**
     * 活动图片url
     */
    private String picurl;
    /**
     * 渠道号
     */
    private Integer channelid;
    /**
     * 渠道名称
     */
    private String channelname;


    public Integer getActivityid() {
        return activityid;
    }

    public void setActivityid(Integer activityid) {
        this.activityid = activityid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getEntryurl() {
        return entryurl;
    }

    public void setEntryurl(String entryurl) {
        this.entryurl = entryurl;
    }

    public String getExiturl() {
        return exiturl;
    }

    public void setExiturl(String exiturl) {
        this.exiturl = exiturl;
    }

    public String getPromotion() {
        return promotion;
    }

    public void setPromotion(String promotion) {
        this.promotion = promotion;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public Date getStarttime() {
        return starttime;
    }

    public void setStarttime(Date starttime) {
        this.starttime = starttime;
    }

    public Date getExpiretime() {
        return expiretime;
    }

    public void setExpiretime(Date expiretime) {
        this.expiretime = expiretime;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getPicurl() {
        return picurl;
    }

    public void setPicurl(String picurl) {
        this.picurl = picurl;
    }

    public Integer getChannelid() {
        return channelid;
    }

    public void setChannelid(Integer channelid) {
        this.channelid = channelid;
    }

    public String getChannelname() {
        return channelname;
    }

    public void setChannelname(String channelname) {
        this.channelname = channelname;
    }

    @Override
    protected Serializable pkVal() {
        return this.activityid;
    }

    @Override
    public String toString() {
        return "TMitActivity{" +
        "activityid=" + activityid +
        ", name=" + name +
        ", entryurl=" + entryurl +
        ", exiturl=" + exiturl +
        ", promotion=" + promotion +
        ", createtime=" + createtime +
        ", starttime=" + starttime +
        ", expiretime=" + expiretime +
        ", status=" + status +
        ", picurl=" + picurl +
        ", channelid=" + channelid +
        ", channelname=" + channelname +
        "}";
    }
}
